package com.mycar2w.cloud.web.model;

import com.mycar2w.cloud.entity.TUser;

/**
 * created time 2017/4/2
 *
 * @author ljc
 * @version V1.0
 */
public class UicRegisterModel {
    /**
     * 账号 邮箱
     */
    private String emial;
    /**
     * 密码
     */
    private String password;
    /**
     * 年龄
     */
    private Integer age;
    /**
     * 性别 t_dic_gender
     */
    private Long genderId;
    /**
     * 地址 现在居住地 t_dic_address
     */
    private Long addressId;
    /**
     * 昵称
     */
    private String nickname;
    /**
     * 身份证
     */
    private String indentification;
    /**
     * 头像
     */
    private String protrait;
    /**
     * 电话
     */
    private String  phone;
    /**
     * 职业
     */
    private String occupation;

    private String role="1";

    public String getEmial() {
        return emial;
    }

    public void setEmial(String emial) {
        this.emial = emial;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Long getGenderId() {
        return genderId;
    }

    public void setGenderId(Long genderId) {
        this.genderId = genderId;
    }

    public Long getAddressId() {
        return addressId;
    }

    public void setAddressId(Long addressId) {
        this.addressId = addressId;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getIndentification() {
        return indentification;
    }

    public void setIndentification(String indentification) {
        this.indentification = indentification;
    }

    public String getProtrait() {
        return protrait;
    }

    public void setProtrait(String protrait) {
        this.protrait = protrait;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getOccupation() {
        return occupation;
    }

    public void setOccupation(String occupation) {
        this.occupation = occupation;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }
    public TUser getTuser(){
        TUser tUser=new TUser();
        tUser.setAddressId(getAddressId());
        tUser.setAge(getAge());
        tUser.setEmail(getEmial());
        tUser.setGenderId(getGenderId());
        tUser.setIdentification(getIndentification());
        tUser.setNickname(getNickname());
        tUser.setOccupation(getOccupation());
        tUser.setPassword(getPassword());
        tUser.setPhone(getPhone());
        tUser.setProtrait(getProtrait());
        tUser.setRole(getRole());
        return tUser;
    }
}
